<html>
<head><meta charset="utf-8"><title>lint definitions · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html">lint definitions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="238834655"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238834655" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238834655">(May 14 2021 at 21:51)</a>:</h4>
<p><span class="user-mention" data-user-id="125294">@Aaron Hill</span> Is there some guidance for when a lint should be declared in <code>rustc_lint_defs</code> vs <code>rustc_lint</code>?  Should <code>rustc_lint_defs</code> only be used for lints needed outside of <code>rustc_lint</code>?</p>



<a name="238834820"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238834820" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238834820">(May 14 2021 at 21:53)</a>:</h4>
<p>uh</p>



<a name="238834830"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238834830" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238834830">(May 14 2021 at 21:53)</a>:</h4>
<p>I'm not actually sure why we have both of those crates</p>



<a name="238834851"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238834851" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238834851">(May 14 2021 at 21:53)</a>:</h4>
<p>I created <code>rustc_lint_defs</code> so that we could reference things from some other crate (I think it was something error-reporting related) as part of the future-incompat report infrastructure</p>



<a name="238834857"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238834857" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238834857">(May 14 2021 at 21:53)</a>:</h4>
<p>it would be nice to merge those crates, if possible</p>



<a name="238834907"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238834907" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238834907">(May 14 2021 at 21:54)</a>:</h4>
<p>rustc_lint is later in the tree (significantly less depends on it)</p>



<a name="238834916"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238834916" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238834916">(May 14 2021 at 21:54)</a>:</h4>
<p>ah, ok</p>



<a name="238834952"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238834952" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238834952">(May 14 2021 at 21:54)</a>:</h4>
<p>other than that I suspect there's no practical difference, that is, you should prefer rustc_lint if possible I think</p>



<a name="238840290"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/lint%20definitions/near/238840290" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/lint.20definitions.html#238840290">(May 14 2021 at 22:57)</a>:</h4>
<p>ok, thanks!  I might update some docs on which to use when I can.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>